package de.akabahn.ebd.control.auth;

/**
 * @author Christian Schlehuber
 * @since 0.1
 * @version 0.2
 */
public class UserAuthObject {

	/**
	 * The user's username
	 */
	private String username;
	/**
	 * The user's password in a SHA256-hashed format
	 */
	private String password;
	/**
	 * The user's access rights
	 */
	private AccessEnum accessRights;
	/**
	 * The available app version information
	 */
	private String version;
	/**
	 * The location of the application's apk package
	 */
	private String apkPath;

	/**
	 * Constuctor for a new UserAuth object
	 * 
	 * @param user
	 *            The user's username
	 * @param pass
	 *            The user's password in SHA256-hashed form
	 * @param rights
	 *            The user's access rights
	 * @param version
	 *            The available app version information
	 */
	public UserAuthObject(String user, String pass, AccessEnum rights, String version, String apkPath) {
		this.username = user;
		this.password = pass;
		this.accessRights = rights;
		this.version = version;
		this.apkPath = apkPath;
	}

	/**
	 * Getter for the user's name
	 * 
	 * @return String containing the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * Getter for the user's password hash
	 * 
	 * @return String containing the password hash
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Getter for the user's access rights
	 * 
	 * @return AccessEnum with the according value
	 */
	public AccessEnum getAccessRights() {
		return accessRights;
	}

	/**
	 * @return the version
	 */
	public String getVersion() {
		return version;
	}

	/**
	 * @return the apkPath
	 */
	public String getApkPath() {
		return apkPath;
	}
}
